package struts_tag;

import java.util.Arrays;

public class UserAction{

	private String username;
	private String password;
	private String desc;
	private boolean married;
	private String gender;
	private String[] city;
	private String age;
	
	public String save(){
		System.out.println(this);
		return "input";
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public String[] getCity() {
		return city;
	}
	public void setCity(String[] city) {
		this.city = city;
	}
	public String getAge() {
		return age;
	}
	public void setAge(String age) {
		this.age = age;
	}
	public boolean isMarried() {
		return married;
	}
	public void setMarried(boolean married) {
		this.married = married;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public String toString() {
		return "UserAction [username=" + username + ", password=" + password + ", desc=" + desc+ ", married=" +
				married + ", gender=" + gender + ", city=" + Arrays.toString(city) + ", age=" + age+ "]";
	}
}
